//
//  NSObject+Unicode.m
//  iOSBaseFramework
//
//  Created by user on 2020/6/17.
//  Copyright © 2020 com.taylor. All rights reserved.
//

#import "NSObject+Unicode.h"

@implementation NSObject(Unicode)

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


/**
*  解决输出中文乱码问题
*
*  @return 字符串
*/
- (NSString *)my_description {
    NSString *desc = [self description];
    desc = [NSString stringWithCString:[desc cStringUsingEncoding:NSUTF8StringEncoding] encoding:NSNonLossyASCIIStringEncoding];
    return desc;
}

@end
